package com.example.demo.service;

import com.example.demo.entity.User;
import org.springframework.data.repository.CrudRepository;

public interface UserRepository extends CrudRepository<User, Long> {

    User findByUsername(String username); //Spring Data JPA 在运行的时候会自动胜出这个接口的实现
}
